/**
 * 
 */
package boundary.components;

import java.awt.Container;

import javax.swing.JFileChooser;

/**
 * @author davide
 *
 */
public class QuadTreeFileChooser extends MyJFileChooser
{
    private static final long serialVersionUID = -6354486885765410847L;

    public QuadTreeFileChooser()
    {
	super(1);
        this.setAccessory(new QuadTreePreview(this));
    }

    @Override
    public boolean isValidSelection(Container parent)
    {
	return this.showDialog(parent, "Importa") == JFileChooser.APPROVE_OPTION;
    }
}
